home *** CD-ROM | disk | FTP | other *** search
- /*------------------------------------------------------------------
- | file name -- cpit_vars.h
- |-----------------------------------------------------------------*/
-
- /* REFERENCE the global variables for DISPLAY */
- extern DV_BOOL ApplicationState;
-
- /* REFERENCE the global variables for the DISPLAY */
- extern DRAWPORT ActiveDrawport, MenuDrawport;
- extern VIEW ActiveView;
- extern OBJECT MenuScreen, MainScreen, ActiveScreen;
-
- extern CHAR *ActiveOverlayName;
-
- extern SYMTABLE
- DpTable, /* table for Room DRAWPORT management */
- ViewTable; /* table for overlay VIEW management */
-
- #define NUM_DISPLAYS 4
- #define NUM_OVERLAYS 5
-
- extern CHAR
- *MainViewNames[], /* Preload Main view file names */
- *OverlayViewNames[]; /* Preload Overlay view file names */
-
- /* Define a structure that will keep track of display lists */
- typedef struct DISPLAY_LIST
- {
- DRAWPORT drawport;
- struct DISPLAY_LIST *prev;
- } DISPLAY_LIST;
-
- extern DISPLAY_LIST *DisplayList; /* Pointer to list of Displays */
-
- /* CONSTANTS */
- #define WAIT_VIEW "intro.v" /* view for preloading views */
- #define MENU_VIEW "menu.v" /* view for preloading views */
-
- #define DEFAULT_SIZE (RECTANGLE*)NULL
- #define DEFAULT_PORTION (RECTANGLE*)NULL
-
- /* Display Manager flags */
- #define RUNNING 1
- #define NOT_RUNNING 0
- #define RESET_DISPLAY 0
- #define NEXT_DISPLAY 1
- #define PREV_DISPLAY 2
-
- /* Hot Spot Names */
- #define QUIT_COMMAND 'Q'
- #define GOTO_COMMAND 'G'
- #define NEXT_COMMAND 'N'
- #define PREVIOUS_COMMAND 'P'
- #define OVERLAY_COMMAND 'O'
- #define DELETE_COMMAND 'D'
-
- /* MISC MACROs */
- #define STRINGS_ARE_EQUAL( str1, str2 ) strcmp( str1, str2 ) == 0
-
- /* ERROR MESSAGE MACROs */
- #define EXIT_IF_INVALID( a, string ) if( !a ) \
- { (VOID)printf(string); exit(EXIT_ERR);}
- #define EXIT2_IF_INVALID( a, s1, s2 ) if( !a ) \
- { (VOID)printf(s1, s2); exit(EXIT_ERR);}
-
- #define RETURN_IF_INVALID( a, string ) if( !a ) \
- { (VOID)printf(string); return;}
-
- #define RETURN2_IF_INVALID(a, s1, s2 ) if (!a) \
- { (VOID)printf( s1,s2);}
-
- #define NO_DEVICE "DataViews environment variable DVDEVICE must be defined.\n"
- #define NO_TOP_VIEW "Top View can't be loaded.\n"
- #define NO_MENU_VIEW "Menu View can't be loaded.\n"
-